import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String id = scan.next();
        String key = scan.next();

        String a = "abc";
        String b = "123";

        if(id.equals(a) && key.equals(b)) {
            System.out.println("111");
        } else {
            System.out.println("222");
        }
    }
}